home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi 2.0 - Programmer's Utilities Power Pack
/
Delphi 2.0 Programmer's Utilities Power Pack.iso
/
a_to_d
/
ctrlkit
/
cntrlreg.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-09-15
|
1KB
|
49 lines
unit CntrlReg;
interface
uses
Classes, IniFiles, Dialogs,
AboutPrp, Ctrl3D, ColorBtn, GraphBtn, LBoxChk, LabelFrm, ListHdr, TabBox;
const
DEF_TABNAME = 'New Controls';
INI_SECTION = 'RWH.DelphiTools';
INI_TABNAME_ID = 'ControlsTab';
procedure Register;
implementation
procedure Register;
var
TabName : String;
begin
TabName := '';
with TIniFile.Create('DELPHI.INI') do begin
try
TabName := ReadString(INI_SECTION, INI_TABNAME_ID, '');
if (TabName = '') then
TabName := InputBox('Install Controls To', 'Component tab name', DEF_TABNAME);
if (TabName = '') then
TabName := DEF_TABNAME;
WriteString(INI_SECTION, INI_TABNAME_ID, TabName);
finally
Free;
end;
end;
AboutPrp.Register;
RegisterComponents(TabName, [TLabel3D, TFramedLabel,
TTabListHeader, TTabListBox, TTabComboBox, TCheckListBox,
TGraphicButton, TColoredButton, TButton3D]);
end;
end.